package edu.hadassah.prettyprint.doc.xml;

import edu.hadassah.prettyprint.doc.Document;
import edu.hadassah.prettyprint.doc.IVisitor;


public class XMLDocument implements Document{
	private final Tag root;

	public XMLDocument(Tag root) {
		super();
		this.root = root;
	}

	public Tag getRoot() {
		return root;
	}
	
	public void accept(IVisitor documentPrinter) {
		root.accept(documentPrinter);
	}
	
}
